import Mock from 'mockjs'
const vehicle = Mock.mock(
  'api/getNewsList', 'post', (req, res) => {
    return {
      code: 200,
      data: [{
        number: '1',
        name: '苏振发',
        position: '生产管理员',
        root: '生产管理员',
        gender: '男',
        work: '新品车间',
        call: '5645616846',
        user: '星星之火'
      }, {
        number: '2',
        name: '阿瑟东',
        position: '生产管理员',
        root: '生产管理员',
        gender: '女',
        work: '新品车间',
        call: '231232',
        user: '可以燎原'

      }, {
        number: '3',
        name: '阿瑟东',
        position: '生产管理员',
        root: '生产管理员',
        gender: '女',
        work: '新品车间',
        call: '231232',
        user: '可以燎原'

      }, {
        number: '4',
        name: '阿瑟东',
        position: '生产管理员',
        root: '生产管理员',
        gender: '女',
        work: '新品车间',
        call: '231232',
        user: '可以燎原'

      }, {
        number: '5',
        name: '阿瑟东',
        position: '生产管理员',
        root: '生产管理员',
        gender: '女',
        work: '新品车间',
        call: '231232',
        user: '可以燎原'

      }],
      message: '查询成功'
    }
  })
const workshop = Mock.mock(
  'api/workshop', 'post', (req, res) => {
    return {
      code: 200,
      data: [{
        id: '1',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/23',
        gmt_modify: '2018/7/23'
      }, {
        id: '2',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/24',
        gmt_modify: '2018/7/24'

      }, {
        id: '3',
        name: '苏振发',
        localtion: '上品车间',
        remark: '123123',
        gmt_create: '2018/7/25',
        gmt_modify: '2018/7/25'
      }, {
        id: '4',
        name: '苏振发',
        localtion: '下品车间',
        remark: '123123',
        gmt_create: '2018/7/26',
        gmt_modify: '2018/7/26'

      }, {
        id: '5',
        name: '苏振发',
        localtion: '左品车间',
        remark: '123123',
        gmt_create: '2018/7/27',
        gmt_modify: '2018/7/27'

      }, {
        id: '6',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/23',
        gmt_modify: '2018/7/23'
      }, {
        id: '7',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/24',
        gmt_modify: '2018/7/24'

      }, {
        id: '8',
        name: '苏振发',
        localtion: '上品车间',
        remark: '123123',
        gmt_create: '2018/7/25',
        gmt_modify: '2018/7/25'
      }, {
        id: '9',
        name: '苏振发',
        localtion: '下品车间',
        remark: '123123',
        gmt_create: '2018/7/26',
        gmt_modify: '2018/7/26'

      }, {
        id: '10',
        name: '苏振发',
        localtion: '左品车间',
        remark: '123123',
        gmt_create: '2018/7/27',
        gmt_modify: '2018/7/27'

      }, {
        id: '1',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/23',
        gmt_modify: '2018/7/23'
      }, {
        id: '2',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/24',
        gmt_modify: '2018/7/24'

      }, {
        id: '3',
        name: '苏振发',
        localtion: '上品车间',
        remark: '123123',
        gmt_create: '2018/7/25',
        gmt_modify: '2018/7/25'
      }, {
        id: '4',
        name: '苏振发',
        localtion: '下品车间',
        remark: '123123',
        gmt_create: '2018/7/26',
        gmt_modify: '2018/7/26'

      }, {
        id: '5',
        name: '苏振发',
        localtion: '左品车间',
        remark: '123123',
        gmt_create: '2018/7/27',
        gmt_modify: '2018/7/27'

      }, {
        id: '1',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/23',
        gmt_modify: '2018/7/23'
      }, {
        id: '2',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/24',
        gmt_modify: '2018/7/24'

      }, {
        id: '3',
        name: '苏振发',
        localtion: '上品车间',
        remark: '123123',
        gmt_create: '2018/7/25',
        gmt_modify: '2018/7/25'
      }, {
        id: '4',
        name: '苏振发',
        localtion: '下品车间',
        remark: '123123',
        gmt_create: '2018/7/26',
        gmt_modify: '2018/7/26'

      }, {
        id: '5',
        name: '苏振发',
        localtion: '左品车间',
        remark: '123123',
        gmt_create: '2018/7/27',
        gmt_modify: '2018/7/27'

      }, {
        id: '2',
        name: '苏振发',
        localtion: '新品车间',
        remark: '123123',
        gmt_create: '2018/7/24',
        gmt_modify: '2018/7/24'

      }, {
        id: '3',
        name: '苏振发',
        localtion: '上品车间',
        remark: '123123',
        gmt_create: '2018/7/25',
        gmt_modify: '2018/7/25'
      }, {
        id: '4',
        name: '苏振发',
        localtion: '下品车间',
        remark: '123123',
        gmt_create: '2018/7/26',
        gmt_modify: '2018/7/26'

      }, {
        id: '5',
        name: '苏振发',
        localtion: '左品车间',
        remark: '123123',
        gmt_create: '2018/7/27',
        gmt_modify: '2018/7/27'

      }],
      message: '查询成功'
    }
  })
const user = Mock.mock(
  '/api/user', 'get', (req, res) => {
    return {
      code: 200,
      data: {
        id: 1,
        sex: 1,
        age: 25,
        createTime: '2017-04-01'
      },
      message: '查询成功'
    }
  })
const userslist = Mock.mock(
  'api/getUsersList', 'post', (req, res) => {
    return {
      code: 200,
      data: [{
        id: '1',
        account: 'lu123',
        pass: '123123',
        name: 'lll',
        duty: '生产管理员',
        remark: '111',
        gmt_create: '2017/08/03',
        gmt_modify: '2017/08/03'
      }, {
        id: '2',
        account: 'lu231',
        pass: '123123',
        name: 'lyt',
        duty: '质检管理员',
        remark: '222',
        gmt_create: '2017/08/05',
        gmt_modify: '2017/08/05'

      }, {
        id: '3',
        account: 'lu321',
        pass: '123123',
        name: 'ytl',
        duty: '生产管理员',
        remark: '333',
        gmt_create: '2017/08/07',
        gmt_modify: '2017/08/07'
      }, {
        id: '4',
        account: 'lu123',
        pass: '123123',
        name: 'tyl',
        duty: 'admin',
        remark: '444',
        gmt_create: '2017/08/03',
        gmt_modify: '2017/08/03'
      }, {
        id: '5',
        account: 'lu231',
        pass: '123123',
        name: 'tly',
        duty: '质检管理员',
        remark: '555',
        gmt_create: '2017/08/05',
        gmt_modify: '2017/08/05'

      }, {
        id: '1',
        account: 'lu321',
        pass: '123123',
        name: 'ylt',
        duty: '生产管理员',
        remark: '666',
        gmt_create: '2017/08/07',
        gmt_modify: '2017/08/07'
      }, {
        id: '2',
        account: 'lu123',
        pass: '123123',
        name: 'lty',
        duty: '生产管理员',
        remark: '777',
        gmt_create: '2017/08/03',
        gmt_modify: '2017/08/03'
      }, {
        id: '3',
        account: 'lu231',
        pass: '123123',
        name: 'yyy',
        duty: '生产管理员',
        remark: '888',
        gmt_create: '2017/08/05',
        gmt_modify: '2017/08/05'

      }, {
        id: '4',
        account: 'lu321',
        pass: '123123',
        name: 'ttt',
        duty: 'admin',
        remark: '999',
        gmt_create: '2017/08/07',
        gmt_modify: '2017/08/07'
      }, {
        id: '5',
        account: 'lu123',
        pass: '123123',
        name: 'lll',
        duty: '质检管理员',
        remark: '111',
        gmt_create: '2017/08/03',
        gmt_modify: '2017/08/03'
      }, {
        id: '1',
        account: 'lu123',
        pass: '123123',
        name: 'lll',
        duty: 'admin',
        remark: '222',
        gmt_create: '2017/08/03',
        gmt_modify: '2017/08/03'
      }, {
        id: '2',
        account: 'lu231',
        pass: '123123',
        name: 'lyt',
        duty: '生产管理员',
        remark: '333',
        gmt_create: '2017/08/05',
        gmt_modify: '2017/08/05'

      }, {
        id: '3',
        account: 'lu321',
        pass: '123123',
        name: 'ytl',
        duty: '生产管理员',
        remark: '444',
        gmt_create: '2017/08/07',
        gmt_modify: '2017/08/07'
      }, {
        id: '4',
        account: 'lu123',
        pass: '123123',
        name: 'tyl',
        duty: '生产管理员',
        remark: '555',
        gmt_create: '2017/08/03',
        gmt_modify: '2017/08/03'
      }, {
        id: '5',
        account: 'lu231',
        pass: '123123',
        name: 'tly',
        duty: '生产管理员',
        remark: '666',
        gmt_create: '2017/08/05',
        gmt_modify: '2017/08/05'

      }, {
        id: '1',
        account: 'lu321',
        pass: '123123',
        name: 'ylt',
        duty: '质检管理员',
        remark: '777',
        gmt_create: '2017/08/07',
        gmt_modify: '2017/08/07'
      }, {
        id: '2',
        account: 'lu123',
        pass: '123123',
        name: 'lty',
        duty: 'admin',
        remark: '888',
        gmt_create: '2017/08/03',
        gmt_modify: '2017/08/03'
      }, {
        id: '3',
        account: 'lu231',
        pass: '123123',
        name: 'yyy',
        duty: '生产管理员',
        remark: '999',
        gmt_create: '2017/08/05',
        gmt_modify: '2017/08/05'

      }, {
        id: '4',
        account: 'lu321',
        pass: '123123',
        name: 'ttt',
        duty: '生产管理员',
        remark: '111',
        gmt_create: '2017/08/07',
        gmt_modify: '2017/08/07'
      }, {
        id: '5',
        account: 'lu123',
        pass: '123123',
        name: 'lll',
        duty: '生产管理员',
        remark: '222',
        gmt_create: '2017/08/03',
        gmt_modify: '2017/08/03'
      }],
      message: '查询成功'
    }
  })
console.log(vehicle.data)
export default { vehicle, userslist, user, workshop }
